package com.event.management.backend.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

/**
 * 问卷题目实体类
 */
@Data
@TableName("questionnaire_questions")
public class QuestionnaireQuestion {
    /**
     * 题目ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 所属模板ID
     */
    private Long templateId;

    /**
     * 题目内容
     */
    private String questionText;

    /**
     * 题型：单选、多选、文本
     */
    private String questionType;

    /**
     * 选项内容（JSON存储）
     */
    private String optionsJson;

    /**
     * 是否必填
     */
    private Boolean isRequired;

    /**
     * 排序字段
     */
    private Integer sortOrder;
    
    /**
     * 题型枚举
     */
    public static final class QuestionType {
        public static final String SINGLE = "single";
        public static final String MULTIPLE = "multiple";
        public static final String TEXT = "text";
    }
} 